﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;
namespace QuanLyBanHang_N3A
{
    public partial class FormReportHoaDonBanHang : Form
    {
        public FormReportHoaDonBanHang()
        {
            InitializeComponent();
        }
        public string MaBH;
        void Report(String MaBH)
        {

            CTHoaDonBUS cthdBUS = new CTHoaDonBUS();
            List<CTHoaDonDTO> ds = new List<CTHoaDonDTO>();
            CryHoaDonBanHang report = new CryHoaDonBanHang();
            ds = cthdBUS.LapHoaDon(MaBH);
            report.SetDataSource(ds);
            crysHoaDonBanHang.ReportSource = report;
        }
        private void crysHoaDonBanHang_Load(object sender, EventArgs e)
        {
            Report(MaBH);
        }
    }
}
